import layoutHeaderAside from '@/layout/header-aside'

// const meta = { auth: true }

export default {
  path: '/user',
  component: layoutHeaderAside,
  children: (pre => [
    {
      path: '/user/getUserPage',
      name: 'userManager',
      meta: {
        title: '用户管理',
        auth: true
      },
      component: () => import('@/views/user/client')
    },
    {
      path: '/user/vipBillPage',
      name: 'user-vip-bill-index',
      meta: {
        title: '用户vip账单列表',
        auth: true
      },
      component: () => import('@/views/user/vipbill')
    },
    {
      path: '/user/getPaymentRecordPage',
      name: 'user-paymentcenter-index',
      meta: {
        title: '查看第三方交易中心记录',
        auth: true
      },
      component: () => import('@/views/user/paymentcenter')
    },
    {
      path: '/userContact/getUserContactPage',
      name: 'user-contact-us-index',
      meta: {
        title: '联系我们管理',
        auth: true
      },
      component: () => import('@/views/user/contactus')
    },
    {
      path: '/userFeedback/getUserFeedbackPage',
      name: 'user-feedback-index',
      meta: {
        title: '用户反馈管理',
        auth: true
      },
      component: () => import('@/views/user/feedback')
    }
  ])('user-')
}
